package lab02.text16;

/**
 * Created by dell on 2017/10/26.
 */
import java.util.Scanner;
public class Text16 {
    public static void main(String[] args) {
        Add add = new Add();
        Subtraction subtraction = new Subtraction();
        Multiplication multiplication = new Multiplication();
        Division division = new Division();

        Scanner sc = new Scanner(System.in);
        System.out.println("请输入x的值：");
        double x = sc.nextDouble();
        System.out.println("请输入y的值：");
        double y = sc.nextDouble();

        System.out.println("Add："+add.arithemtic());
        System.out.println("Subtraction："+subtraction.arithemtic());
        System.out.println("Multiplication："+multiplication.arithemtic());
        System.out.println("Division："+division.arithemtic());
    }
}

